package com.woniuxy.enjoylife.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.enjoylife.entity.Activity;
import com.woniuxy.enjoylife.entity.Activity_comment;
import com.woniuxy.enjoylife.entity.dto.*;
import com.woniuxy.enjoylife.utils.PageResult;

import java.util.List;

/**
 * 活动评论
 */
public interface ActivityCommentService extends IService<Activity_comment> {

    //查询所有评论
    PageResult<ActivityShowDto> selectAllComment(int page, int size, int uid);

    //查询当前活动有关的所有评论
    List<Activity_comment> selectComment(int aid);

    //新增
    int addActivityComment(Activity_comment activityComment);

    //修改
    int updateActivityComment(Activity_comment activityComment);

    //删除
    int deleteActivityComment(int id);

    //平台查询所有活动评论及其发表人
    public PageResult<List<ActivityAndActivityCommentUserDto>> findAllActivityCommentAndUser(int current, int size);
    //平台模糊查询所有人的评论
    public PageResult<List<ActivityAndActivityCommentUserDto>> findLikeAllAndUser(String content,int current,int size);


    //*************用户活动*********************
    public List<ActivityCommentAndUserDto> findActivityComment(Integer id);
    public List<ActivityCommentAndUserDto> findActivityCommentAndReply(Integer id);
}
